<?php /* Smarty version 2.6.18, created on 2010-03-10 15:59:06
         compiled from dataTAC_popup.tpl */ ?>
<script type="text/javascript">	
	var calendar1 = new ekimo_calendar("dstart_show","date_start","Date Start", "calendar");
	var calendar2 = new ekimo_calendar("dexpire_show","date_expire","Date Expire", "calendar1");
</script>
<form name="mainForm" method="POST" id="mainForm" action="/admin/dataTACAddTac">
<div id="tac_details" width="100%" style="overflow: auto;width:400px;">
	<input type="hidden" name="tac_id" value="<?php echo $this->_tpl_vars['result'][0]['tac_id']; ?>
">
	<div id="drag_bar" class="blue"><h2 class="dotted">TAC Maintenance:</h2></div><br>
	<table width="100%">
		<tr>
			<td><label>Organism:</label></td>
			<td>
				<select name="organisms" WIDTH="300" STYLE="width: 300px">
					<?php $_from = $this->_tpl_vars['organisms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['organism']):
?>
						<option value="<?php echo $this->_tpl_vars['organism']['organism_id']; ?>
"
						<?php if ($this->_tpl_vars['organism']['organism_id'] == $this->_tpl_vars['result'][0]['organism_id']): ?>
							selected
						<?php endif; ?>
						>
						<?php echo $this->_tpl_vars['organism']['name']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td><label>Fishing Area:</label></td>
			<td>
				<select name="fishing_areas">
					<?php $_from = $this->_tpl_vars['fishing_areas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['fishing_area']):
?>
						<option value="<?php echo $this->_tpl_vars['fishing_area']['fishing_area_id']; ?>
"
						<?php if ($this->_tpl_vars['fishing_area']['fishing_area_id'] == $this->_tpl_vars['result'][0]['fishing_area_id']): ?>
							selected
						<?php endif; ?>
						>
						<?php echo $this->_tpl_vars['fishing_area']['fishing_area_name']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td><label>Limit Quantity:</label></td>
			<td><input type="text" name="limit_quantity" value="<?php echo $this->_tpl_vars['result'][0]['limit_quantity']; ?>
"></td>
		</tr>
		<tr>
			<td><label>Current</label></td>
			<td><input type="checkbox" name="current" value="1" <?php if ($this->_tpl_vars['result'][0]['current']): ?>checked<?php endif; ?></td>
		</tr>
		<tr>
			<td><label>Date Start:</label></td>
			<td>
				<label for="date_start" class="yui-skin-sam">
					<input type="text" id="date_start" name="date_start" value="<?php echo $this->_tpl_vars['result'][0]['date_start']; ?>
">
					
					<a href="javascript:void(0);" id="dstart_show">
						<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
					</a>
					<div id="calendar" style="display:none;position:absolute;"></div> 
				</label>
			</td>
		</tr>
		<tr>
			<td><label>Date Expire:</label></td>
			<td>
				<label for="date_expire" class="yui-skin-sam">
					<input type="text" id ="date_expire" name="date_expire" value="<?php echo $this->_tpl_vars['result'][0]['date_expire']; ?>
">
					
					<a href="javascript:void(0);" id="dexpire_show">
						<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
					</a>
					<div id="calendar1" style="display:none;position:absolute;"></div> 
				</label>
			</td>
		</tr>
	</table>
</div><br>
<input type="submit" value="Save">
<input type="button" onclick="popup('popUpDiv');" value="Cancel">
</form>